package com.loyal.loyalerp.basedata.person_predept.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.loyal.loyalerp.basedata.person_predept.mapper.GyPersonPredeptMapper;
import com.loyal.loyalerp.basedata.person_predept.model.GyPersonPredept;
import com.loyal.loyalerp.basedata.person_predept.service.PredeptService;

@Service
public class PredeptServiceImpl implements PredeptService {

	@Autowired
	private GyPersonPredeptMapper predeptMapper;
	

	@Override
	public List<GyPersonPredept> selectByPersonId(Integer personId) {
		List<GyPersonPredept> predeptList=predeptMapper.selectByPersonId(personId);
		return predeptList;
	}


	@Override
	public void insertPredept(GyPersonPredept predept) {
		predeptMapper.insert(predept);
		
	}
	
}
